X-Git-Url: https://git.r.bdr.sh/rbdr/super-polarity/blobdiff_plain/2af83e98005a14c439b360a5b9ac636f594d9f0c..38c7d3f9eb7d63937c6654ff5dd6046ce02dd59c:/Super%20Polarity/InputController.cs diff --git a/Super Polarity/InputController.cs b/Super Polarity/InputController.cs index ad07717..79bd039 100644 --- a/Super Polarity/InputController.cs +++ b/Super Polarity/InputController.cs @@ -88,8 +88,8 @@ namespace SuperPolarity { if (!BlockedKeys.Contains(entry.Key)) { - Dispatch(entry.Key, 1); BlockedKeys.Add(entry.Key); + Dispatch(entry.Key, 1); } keyFired = true; break; @@ -111,8 +111,8 @@ namespace SuperPolarity { if (!BlockedButtons.Contains(entry.Key)) { - Dispatch(entry.Key, 1); BlockedButtons.Add(entry.Key); + Dispatch(entry.Key, 1); } keyFired = true; break; @@ -192,5 +192,11 @@ namespace SuperPolarity method(value); } } + + public static void Unlock(string eventName) + { + BlockedButtons.Remove(eventName); + BlockedKeys.Remove(eventName); + } } }